Optimal. Leaf size=11 \[ \frac {B \tan (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {21, 3852, 8}
\begin {gather*} \frac {B \tan (c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 21
Rule 3852
Rubi steps
\begin {align*} \int \frac {(a B+b B \cos (c+d x)) \sec ^2(c+d x)}{a+b \cos (c+d x)} \, dx &=B \int \sec ^2(c+d x) \, dx\\ &=-\frac {B \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{d}\\ &=\frac {B \tan (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 11, normalized size = 1.00 \begin {gather*} \frac {B \tan (c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 12, normalized size = 1.09
method | result | size |
derivativedivides | \(\frac {B \tan \left (d x +c \right )}{d}\) | \(12\) |
default | \(\frac {B \tan \left (d x +c \right )}{d}\) | \(12\) |
risch | \(\frac {2 i B}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}\) | \(21\) |
norman | \(\frac {-\frac {2 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}-\frac {2 B \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}\) | \(65\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 19, normalized size = 1.73 \begin {gather*} \frac {B \sin \left (d x + c\right )}{d \cos \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 32 vs.
\(2 (8) = 16\).
time = 1.82, size = 32, normalized size = 2.91 \begin {gather*} \begin {cases} \frac {B \tan {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\\frac {x \left (B a + B b \cos {\left (c \right )}\right ) \sec ^{2}{\left (c \right )}}{a + b \cos {\left (c \right )}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.49, size = 11, normalized size = 1.00 \begin {gather*} \frac {B \tan \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.47, size = 30, normalized size = 2.73 \begin {gather*} -\frac {2\,B\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________